#include<bits/stdc++.h>
using namespace std;
int ans,n;
int r[100005];
int a[100005]={0};
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++)
    {

        cin>>r[i];
    }
    sort(r+1,r+n+1);
  /*  for(int i=1;i<=n;i++)
    {

        cout<<r[i]<<endl;
    }*/
    for(int i=1;i<=n;i++)
        for(int j=i+1;j<=n;j++)
        {
            if(r[j]>r[i]&&a[j]==0)
            {
                ans--;
                a[j]=1;
                break;
            }
        }

    cout<<ans;
    return 0;
}
